package com.nf.health.app.mine.activity;

import android.os.Bundle;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.TextView;

import com.nf.health.app.R;
import com.nf.health.app.activity.global.BaseActivity;
import com.nf.health.app.http.Apis;

public class IntroductionActivity extends BaseActivity implements OnClickListener {
	private String type;
	WebView webView;
	TextView titlebar_title_tv;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		type = getIntent().getStringExtra("type");
		setTitleBar(R.layout.titlebar_base);
		setContent(R.layout.activity_my_privacy);
		webView = (WebView) findViewById(R.id.schemedatail_yl);
		titlebar_title_tv = (TextView) findViewById(R.id.titlebar_title_tv);
//		tv_content = (TextView) findViewById(R.id.tv_content);
		if (type.equals("privacy")) {
			titlebar_title_tv.setText("隐私条款");
			webView.loadUrl(Apis.getCommonUrl("/about/user_secret.html"));
//			tv_content.setText(R.string.my_privacy);
		} else if (type.equals("known")) {
			titlebar_title_tv.setText("用户须知");
			webView.loadUrl(Apis.getCommonUrl("/about/user_notice.html"));
//			tv_content.setText(R.string.my_known);
		} else if (type.equals("function")){
			titlebar_title_tv.setText("功能介绍");
			webView.loadUrl(Apis.getCommonUrl("/about/user_Introduction.html"));
//			tv_content.setText(R.string.function);
		}
	}
}
